package com.time.sky.service;


import com.time.sky.entity.Shop;
import com.time.sky.mapper.ShopMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ShopServiceImpl implements  ShopService {
    @Autowired
    ShopMapper shopMapper;

    public List<Shop> selectShopfindAll() {
        return shopMapper.selectShopfindAll();
    }

    @Override
    public void deleteShop(Long sid) {
        shopMapper.deleteShop( sid );
    }

    @Override
    public void addShop(Shop shop) {
        shopMapper.addShop( shop );
    }

    @Override
    public void updateShop(Shop shop) {
        shopMapper.updateShop( shop );
    }
}
